<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">
	<title>评价列表</title>

	<link href="/static/css/bootstrap.min.css" rel="stylesheet">
	<link href="/static/css/animate.min.css" rel="stylesheet">
	<link href="/static/css/main.css" rel="stylesheet">
	<link href="/static/css/page.css" rel="stylesheet">
	<link href="/static/css/responsive.css" rel="stylesheet">
	<link href="/static/iconfont/iconfont.css" rel="stylesheet" />

	<script src="/static/js/jquery.js"></script>
	<script src="/static/js/bootstrap.min.js"></script>
	<script src="/static/js/jquery.SuperSlide.js" type="text/javascript"></script>
	<script src="/static/js/NSW_Index.js"></script>

</head>
<!--/head-->


<body>
	<header id="header">
		<nav class="navbar navbar-inverse" role="banner">
			<div class="container">
				<div class="row">
					<div class="col-md-3 navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="index.html"><img src="/static/images/logo.png" alt="logo"
								class="img-responsive"></a>
					</div>
					<div class="col-md-9">
						<div class="tel">24小时服务热线：<span>0755-29961998</span></div>
						<div class="collapse navbar-collapse navbar-right">
							<ul class="nav navbar-nav">
								<li >
									<a href="http://127.0.0.1:8000/publish/model_view/">订单类型</a>
								</li>
								<li>
									<a href="http://127.0.0.1:8000/order/order_list_view/">我的订单</a>
								</li>
								<li class="active">
									<a href="http://127.0.0.1:8000/evaluation/list_view/">我的评价</a>
								</li>
								<li>
									<a href="http://127.0.0.1:8000/user/user_view/">我的信息</a>
								</li>

							</ul>
						</div>
					</div>
				</div>
			</div>
		</nav>
	</header>
	<div class="fr perfect">评价内容</div>
	<div id="content"></div>
	<!--banner-->
	<div class="banner2">
		<p style="background:url(/static/images/about.png) no-repeat center; background-size:cover;"></p>
	</div>
	<div class="clearfix"></div>
	<section class="container">
		<div class="head">客户评价<span>Customer evaluation</span></div>
		<!-- 客户留言 -->
		<script>
			token = window.localStorage.getItem('moh_token');
			username = window.localStorage.getItem('moh_user');
			if (!username) {
				alert("请先登录")
				window.location.href = 'http://127.0.0.1:8000/user/login_view/';
			} else {
				$.ajax({
					type: "get",
					url: "http://127.0.0.1:8000/evaluation/request_list_view/" + username,
					beforeSend: function (request) {
						request.setRequestHeader("Authorization", token);
					},
					success: function (data) {
						var html = ""
						if (data.code == 200) {
							var models = data.data.list;
							for (var i in models) {
								item = models[i];
								console.log(item);
								var newTelVal = '';
								if (item.phone) {
									for (var i = 0; i < item.phone.length; i++) {
										if (i < 3 || i >= item.phone.length - 3) {
											newTelVal += item.phone[i];
										} else {
											newTelVal += '*';
										}
									}
								}else{
									newTelVal = "无";
								}
								item.phone = newTelVal;
								html += '<div class="leave"><ul><li><div class="fl"><img src="/static/images/20170306123521.jpg"><p>反馈电话: ' + item.phone + '</p></div>'
								html += '<div class="fm">'
								html += '<span >订单号： ' + item.order_code + '</span><span class="scroerow">评价内容：' + item.content + '</span></div></li></ul>'
								html += '</div>'
							}
						} else {
							alert(data.error);
						}
						$("#content").html(html);
					},
					error: function (e) {
						alert(data);
					}
				})
			}
		</script>




		<div class="clearfix"></div>
	</section>
	<!-- 安全 Start -->
	<section class="service-v1">
		<div class="container">
			<div class="row">
				<div class="col-sm-4 col-md-4 col-lg-4">
					<div class="item">
						<div class="icon">
							<i class="iconfont">&#xe620;</i>
						</div>
						<div class="text">
							<div class="inner">
								<h3>正规公司，值得信赖</h3>
								<p>工商注册备案，安全可靠！</p>
							</div>
						</div>
					</div>
				</div>
				<div class="col-sm-4 col-md-4 col-lg-4">
					<div class="item">
						<div class="icon">
							<i class="iconfont">&#xe633;</i>
						</div>
						<div class="text">
							<div class="inner">
								<h3>安全保障，持证上岗</h3>
								<p>三证齐全（身份证，健康证，育婴师证）疾病排查，身份联网确认</p>
							</div>
						</div>
					</div>
				</div>
				<div class="col-sm-4 col-md-4 col-lg-4">
					<div class="item">
						<div class="icon">
							<i class="iconfont">&#xe614;</i>
						</div>
						<div class="text">
							<div class="inner">
								<h3>异地服务，更贴心</h3>
								<p>专注母婴护理，你在哪，我们的服务就在哪里</p>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>


	<!--footer-->
	<footer id="footer">
		<div class="container">
			<span>
        <a href="http://127.0.0.1:8000/publish/model_view/">订单类型 </a>
        <a href="http://127.0.0.1:8000/order/order_list_view/">我的订单</a>
        <a href="http://127.0.0.1:8000/evaluation/list_view/">我的评价</a>
        <a href="http://127.0.0.1:8000/user/user_view/">我的信息</a>
      </span>
			<span>联系地址：深圳宝安西乡街道兴业路西南侧碧海富通城1栋110 &nbsp;&nbsp; 联系方式：0755-29961998<br>
				Copyright © 2005-2023 All rights reserved. 京ICP备10012705号-8 </span>
		</div>
	</footer>

</body>

</html>